package rwlivbk.mapper;

import org.springframework.stereotype.Repository;
import rwlivbk.model.Dish;
import rwlivbk.model.Ingredient;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;
import java.util.List;

@Mapper
@Repository

public interface IngredientMapper {

    List<Ingredient> findIngredientsByDishId(Integer dish_id);

    void updateIngredient(Ingredient ingredient);

    void insertIngredient(Ingredient ingredient);

    ArrayList<Ingredient> findAllIngredients();

    void insertDishIngredient(Integer dishId, Integer ingredientId);

    void deleteDishIngredient(Integer dishId, Integer ingredientId);

    ArrayList<Ingredient> findAllDeletedIngredients();
}